home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_06
/
1006014a
< prev
next >
Wrap
Text File
|
1992-04-07
|
665b
|
26 lines
/* xalloc.h internal header */
#include <stddef.h>
#include <stdlib.h>
#ifndef _YVALS
#include <yvals.h>
#endif
/* macros */
#define CELL_OFF (sizeof (size_t) + _MEMBND & ~_MEMBND)
#define SIZE_BLOCK 512 /* minimum block size */
#define SIZE_CELL \
((sizeof (_Cell) + _MEMBND & ~_MEMBND) - CELL_OFF)
/* type definitions */
typedef struct _Cell {
size_t _Size;
struct _Cell *_Next;
} _Cell;
typedef struct {
_Cell **_Plast;
_Cell *_Head;
} _Altab;
/* declarations */
void *_Getmem(size_t);
extern _Altab _Aldata;